import React, {Component} from 'react'
import UserInfo from './UserInfo'
import BlogDetail from './BlogDetails'
export default class Blog extends React.Component {
  state = {
    title: '勿谓言之不预也',
    time: '2020-10-16 08:00:00',
    content: '一定要解放台湾一定要解放台湾一定要解放台湾一定要解放台湾一定要解放台湾',
    img: '../logo.svg',
    nick: 'Tom'
  }
  render() {
    return (<div>
      {/* 父传子 */}
      <UserInfo img={this.state.img} nick={this.state.nick}></UserInfo>
      <BlogDetail
        title={this.state.title} 
        time={this.state.time} 
        content={this.state.content}>
      </BlogDetail>
    </div>)
  }
}